package br.com.sispac.model.bean;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="funcionarios")
public class FuncionarioBean implements Serializable {

	private static final long serialVersionUID = 1L;
/*
  id_funcionario serial NOT NULL, -- id_funcionario
  id_funcao integer NOT NULL, -- id_funcao
  id_departamento integer, -- id_departamento
  id_status integer, -- id_status
  nomeusuario character varying(25) NOT NULL, -- nomeusuario
  senha character varying(15) NOT NULL, -- senha
  nome character varying(255) NOT NULL, -- nome
  dt_nascimento date, -- dt_nascimento
  cpf character varying(15) NOT NULL, -- cpf
  rg character varying(15) NOT NULL, -- rg
  rg_localidade character varying(6), -- rg_localidade
  telefone character varying(15), -- telefone
  celular character varying(15), -- celular
  mae character varying(255), -- mae
  num_cart_trabalho character varying(80), -- num_cart_trabalho
 * */
	@Id
	@SequenceGenerator(name="sequenceIdFunc", sequenceName="funcionarios_id_funcionario_seq",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="sequenceIdFunc")
	private Integer id;
}
